Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/Set freeze flag to false #737

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

pranavbabu
Copy link
Contributor

This PR addresses an issue where the pagy_url_for method was attempting to modify a frozen ActiveSupport::HashWithIndifferentAccess object, leading to a FrozenError due to the immutability of the hash. The pagy_set_query_params method modifies the query_params hash, which caused issues when the hash was frozen.

According to the docs of Kernel#clone method it returns frozen object if it was frozen.

@ddnexus ddnexus changed the base branch from master to dev September 9, 2024 10:40
@ddnexus ddnexus merged commit 658671a into ddnexus:dev Sep 9, 2024
5 of 9 checks passed
@ddnexus
Copy link
Owner

ddnexus commented Sep 9, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants